home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_perl.idb / usr / freeware / catman / p_man / cat3 / IPC::Msg.Z / IPC::Msg
Encoding:
Text File  |  1998-10-28  |  3.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4.      IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))     22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))       IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       IPC::Msg - SysV Msg IPC object class
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           use IPC::SysV qw(IPC_PRIVATE S_IRWXU S_IRWXG S_IRWXO);
  13.           use IPC::Msg;
  14.  
  15.           $msg = new IPC::Msg(IPC_PRIVATE, S_IRWXU | S_IRWXG | S_IRWXO);
  16.  
  17.           $msg->snd(pack("L    a*",$msgtype,$msg));
  18.  
  19.           $msg->rcv($buf,256);
  20.  
  21.           $ds = $msg->stat;
  22.  
  23.           $msg->remove;
  24.  
  25.  
  26.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  27.      MMMMEEEETTTTHHHHOOOODDDDSSSS
  28.       new (    KEY , FLAGS )
  29.           Creates a    new message queue associated with KEY. A new
  30.           queue is created if
  31.  
  32.       +o      KEY is equal to IPC_PRIVATE
  33.  
  34.       +o      KEY does not already    have  a     message queue
  35.           associated with it, and _F_L_A_G_S    & IPC_CREAT is true.
  36.  
  37.           On creation of a new message queue FLAGS is used to
  38.           set the permissions.
  39.  
  40.       id  Returns the system message queue identifier.
  41.  
  42.       rcv (    BUF, LEN [, TYPE [, FLAGS ]] )
  43.           Read a message from the queue. Returns the type of the
  44.           message read. See    the _m_s_g_r_c_v manpage
  45.  
  46.       remove
  47.           Remove and destroy the message queue from    the system.
  48.  
  49.       set (    STAT )
  50.  
  51.       set (    NAME =>    VALUE [, NAME => VALUE ...] )
  52.           set will set the following values    of the stat structure
  53.           associated with the message queue.
  54.  
  55.           uid
  56.           gid
  57.           mode (oly the    permission bits)
  58.           qbytes
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 10/23/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))     22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))       IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))
  71.  
  72.  
  73.  
  74.           set accepts either a stat    object,    as returned by the
  75.           stat method, or a    list of    _n_a_m_e-_v_a_l_u_e pairs.
  76.  
  77.       snd (    TYPE, MSG [, FLAGS ] )
  78.           Place a message on the queue with    the data from MSG and
  79.           with type    TYPE.  See the _m_s_g_s_n_d manpage.
  80.  
  81.       stat
  82.           Returns an object    of type    IPC::Msg::stat which is    a
  83.           sub-class    of Class::Struct. It provides the following
  84.           fields. For a description    of these fields    see you    system
  85.           documentation.
  86.  
  87.           uid
  88.           gid
  89.           cuid
  90.           cgid
  91.           mode
  92.           qnum
  93.           qbytes
  94.           lspid
  95.           lrpid
  96.           stime
  97.           rtime
  98.           ctime
  99.  
  100.  
  101.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  102.       the _I_P_C::_S_y_s_V    manpage    the _C_l_a_s_s::_S_t_r_u_c_t manpage
  103.  
  104.      AAAAUUUUTTTTHHHHOOOORRRR
  105.       Graham Barr <gbarr@pobox.com>
  106.  
  107.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  108.       Copyright (c)    1997 Graham Barr. All rights reserved.    This
  109.       program is free software; you    can redistribute it and/or
  110.       modify it under the same terms as Perl itself.
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 10/23/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))     22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222))))       IIIIPPPPCCCC::::::::MMMMssssgggg((((3333))))
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.      Page 3                        (printed 10/23/98)
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.